<?php
/**
 * Class file not found Exception
 *
 * It is used when the systems finds a rule in __autoload function but the file
 * is not on the rule's paths.
 *
 * LICENSE: This file is part of Elfin.
 *
 *   Elfin is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   Elfin is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with Elfin.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @author Filipe Silva <silvam.filipe@gmail.com>
 * @category Core
 * @license GNU General Public License <http://www.fsf.org/licensing/licenses/gpl.html>
 */

/**
 * Class file not found Exception
 *
 * It is used when the systems finds a rule in __autoload function but the file
 * is not on the rule's paths.
 * @package Elfin
 * @subpackage Exceptions
 */
class ClassFileNotFoundException extends GeneralException {

    public function  __construct($filename, $rule) {
        $message = "Class file {$filename} not found. Using rule {$rule}";
        parent::__construct($message);
    }

}
?>